package com.linkgap.cloud.service;

import com.linkgap.cloud.entity.Member;

import com.linkgap.cloud.repo.MemberRepo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MemberService {

    //3,通过部门id列表，查询（tb_member）所对应的成员列表。
    @Autowired
    private MemberRepo memberRepo;
    public  List<Member> queryMemberByDepartmentList(List<Long> departmentIdList) {
        List<Member> memberList = memberRepo.findAllByDepartmentIdIn(departmentIdList);
        return memberList;

    }
}
